Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relax encoding requirements for CGLContextObj #1641

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

madsmtm
Copy link
Member

@madsmtm madsmtm commented Oct 24, 2023

Fixes #1640. The issue is that CGLContextObj changed its encoding in macOS Sonoma 14.0. The encoding of a type is something that objc2 uses to debug-assert that the definition is written correctly, but of course, if the Rust code assumes that the encoding is one thing, and it then changes, then the debug assertion will now fail.

The correct fix will land at some point in madsmtm/objc2#526, which will also help with such a problem not happening again, but we can fix the issue in the interim using the relax-void-encoding escape-hatch.

  • Tested on all platforms changed
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality

@tronical
Copy link
Contributor

Thank you, this fixes the crash for me!

@kchibisov kchibisov merged commit 866ea7b into master Oct 25, 2023
43 checks passed
@kchibisov kchibisov deleted the fix-context-obj-encoding branch October 25, 2023 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Cannot create CGL context
3 participants